package com.yuanhua.xcxmng.wechat.job;

import cn.hutool.cron.task.Task;
import cn.hutool.log.Log;
import com.yuanhua.xcxmng.wechat.service.TargetYesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 本周本月是否达成目标
 */
@Service
public class ConfirmTargetTask extends BaseTask implements Task {

    @Autowired
    private TargetYesService targetYesService;

    @Override
    public void execute() {
        try {
            targetYesService.targetYes();
        } catch (Exception e) {
            logger.error(e,e.getMessage());
        }
    }
}
